{# Slow transactions and lock failures from the last hour (app.core.db_activity), each with the process and the app code behind it, read like Logs as Transactions is: the code cut at the edge, a click opens it, a copy takes it whole. #} {% from "pages/overseer/_macros.html" import opens_rows, row_cell, rows_head %} {% from "pages/overseer/database/_macros.html" import copy_cell %} {% set cell = row_cell("whitespace-nowrap truncate") %}
Transactions held longer than {{ threshold }} s, and statements that found the database locked, in the last hour, with the code behind each.
{% if activity %}| {{ row.when }} | {{ row.what }} | {{ copy_cell(row.process, "process") }} {{ copy_cell(row.caller, "code", opens=True) }}
Nothing slow or locked in the last hour
{% endif %}